package com.cxf.windex.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel(description = "账本信息")
@Table(name = "js_bills")
public class JsBills {
    /**
     * ID
     */
    @Id
    private String id;

    /**
     * 用户ID
     */
    private String userid;

    /**
     * 支付对象
     */
    @ApiModelProperty(value = "支付名称", required = true)
    private String name;

    /**
     * 支付金额
     */
    @ApiModelProperty(value = "支付金额", required = true)
    private BigDecimal money;

    /**
     * 支付金额
     */
    @ApiModelProperty(value = "时间", required = true)
    @Column(name = "pay_time")
    private String payTime;

    /**
     * 0收入1支出
     */
    @ApiModelProperty(value = "支付类型", required = true)
    @Column(name = "pay_type")
    private Integer payType;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String notes;

    /**
     * 创建时间
     */
    @Column(name = "crt_time")
    private Date crtTime;

    /**
     * 获取ID
     *
     * @return id - ID
     */
    public String getId() {
        return id;
    }

    /**
     * 设置ID
     *
     * @param id ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取用户ID
     *
     * @return userid - 用户ID
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 设置用户ID
     *
     * @param userid 用户ID
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 获取支付对象
     *
     * @return name - 支付对象
     */
    public String getName() {
        return name;
    }

    /**
     * 设置支付对象
     *
     * @param name 支付对象
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取支付金额
     *
     * @return money - 支付金额
     */
    public BigDecimal getMoney() {
        return money;
    }

    /**
     * 设置支付金额
     *
     * @param money 支付金额
     */
    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * 获取0收入1支出
     *
     * @return pay_type - 0收入1支出
     */
    public Integer getPayType() {
        return payType;
    }

    /**
     * 设置0收入1支出
     *
     * @param payType 0收入1支出
     */
    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    /**
     * 获取备注
     *
     * @return notes - 备注
     */
    public String getNotes() {
        return notes;
    }

    /**
     * 设置备注
     *
     * @param notes 备注
     */
    public void setNotes(String notes) {
        this.notes = notes;
    }

    /**
     * 获取创建时间
     *
     * @return crt_time - 创建时间
     */
    public Date getCrtTime() {
        return crtTime;
    }

    /**
     * 设置创建时间
     *
     * @param crtTime 创建时间
     */
    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }
}
